/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSky.support.recoder;

import java.io.UnsupportedEncodingException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Rakev
 */
public class OneStringRecoder implements StringRecoder {

    private final String codePoint;

    public OneStringRecoder(String codePoint) {
        this.codePoint = codePoint;
    }

    @Override
    public String recode(String input) throws UnsupportedEncodingException {
            return new String(input.getBytes(), codePoint);
    }
}
